package com.wilson.integration.lease.app.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wilson.integration.lease.common.entity.RoomInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wilson.integration.lease.common.entity.vo.room.RoomDetailVO;
import com.wilson.integration.lease.common.entity.vo.room.RoomItemVO;
import com.wilson.integration.lease.common.entity.vo.room.RoomQueryVO;

/**
* @author wilson
* @description 针对表【room_info(房间信息表)】的数据库操作Service
* @createDate 2023-07-26 11:12:39
*/
public interface RoomInfoService extends IService<RoomInfo> {

    /**
     * 分页查询房间列表
     *
     * @param page
     * @param queryVO
     * @return
     */
    IPage<RoomItemVO> pageAppRoomItemByQuery(Page<RoomItemVO> page, RoomQueryVO queryVO);

    /**
     * 根据id获取房间的详细信息
     *
     * @param id
     * @return
     */
    RoomDetailVO getDetailById(Long id);

    /**
     * 根据公寓id分页查询房间列表
     *
     * @param page
     * @param id
     * @return
     */
    IPage<RoomItemVO> pageItemByApartmentId(IPage<RoomItemVO> page, Long id);
}
